-- GENERATED SPELL FOR [Earthen Sculptor] --


function spell0_7012(pUnit, Event) --@Fire Shield IV,n/a--
pUnit:FullCastSpellOnTarget(2602,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7012', 16000, 1)
end

function spell1_7012(pUnit, Event) --@Flame Buffet,n/a--
pUnit:FullCastSpellOnTarget(10452,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7012', 22200, 1)
end

function Sorts_7012(pUnit, Event)
local choix_sorts_7012 = math.random(0, 1)
if choix_sorts_7012 == 0 then
pUnit:RegisterEvent('spell0_7012', 1, 1)
end
if choix_sorts_7012 == 1 then
pUnit:RegisterEvent('spell1_7012', 1, 1)
end
end

function mob7012_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7012', math.random(1500, 3000), 1)
end

function mob7012_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7012_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7012_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7012, 1, 'mob7012_Action')
RegisterUnitEvent(7012, 2, 'mob7012_Leave')
RegisterUnitEvent(7012, 3, 'mob7012_Kill')
RegisterUnitEvent(7012, 4, 'mob7012_Die')
